//
//  IFIndexCell.h
//  chanlin
//
//  Created by Ryan on 14-11-9.
//  Copyright (c) 2014年 chanlin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CLList.h"
#import "CLList+Oper.h"
#import "IFIndexTitleView.h"
#import "CLTopic.h"
#import "CLCollect.h"

#define cellEdgeCap 11.f
#define cellThumbnailWidth 83.f
#define cellThumbnailHeight 59.f
#define cellTitleThumbnailCap 12.f
#define cellLongTitleWidth (GlobleWidth - 2*cellEdgeCap)
#define cellShortTitleWidth (GlobleWidth - 2*cellEdgeCap - cellThumbnailWidth - cellTitleThumbnailCap)
#define cellAudioTitleWidth 248.f
#define cellTitleHeight 45.f

@interface IFIndexCell : UITableViewCell

@property (nonatomic,copy) void (^_blkTapResponse)(CLList *indexList,int index,NSIndexPath *indexPath);
@property (nonatomic,copy) void (^_blkTapResponse2)(CLTopic *indexList,int index,NSIndexPath *indexPath);
@property (nonatomic,strong) UIView *selectView;
@property (nonatomic,strong) IFIndexTitleView *titleLabel;
@property (nonatomic,strong)CALayer *cellSeperatorImgView;
@property (nonatomic,strong) UIView *baseView;
@property (nonatomic,strong)NSIndexPath *indexPath;
@property (nonatomic,weak) id<NSObject> delegate;
@property (nonatomic,strong)NSString *keyword;

- (void)uiInit;

- (void)loadData:(CLList *)newsList;

- (void)loadTopicData:(CLTopic *)newsList;

- (void)loadCollect:(CLCollect *)collect;

- (void)setPlayVideo:(BOOL)isPlay;

- (void)setIsRead:(BOOL)isRead;

- (void)setRedRange:(NSRange )range;

@end
